package com.nulldev.util.java.scripting.nscript.demo;

import com.nulldev.util.java.scripting.nscript.nScript;
import com.nulldev.util.java.scripting.nscript.nScriptSecurity.Permissions;

public class nScriptDemo {

	public static void main(String[] args) {
		final nScript ns = new nScript("nscript asObject()"
				+ "\nnscript"
				+ "\nweb.pingable www.google.com");
		ns.grantPermission(Permissions.INTERNET);
		ns.run();
	}

}
